<%@ page language="Java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("UTF-8");
String username=request.getParameter("username");
String pwd=request.getParameter("pwd");
if("admin".equals(username) && "admin".equals(pwd)){
	out.print("<script language='javascript'>alert('登录成功！');window.location.href='login.jsp';</script>");
}else{
	response.sendRedirect("error.jsp");
}
%>